package com.gitee.empty_null.exception.domain;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author xuhainan
 * @date 2024/1/17 13:50
 * @region hefei
 */
public class CodeDomain implements Serializable {
    @Serial
    private static final long serialVersionUID = -207949843847391127L;

    private final int code;
    private final String message;

    public CodeDomain(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
